<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/wmsproject/mespush/Wms_MesPushTaskDetail.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/wmsproject/mespush/Wms_MesPushTaskDetail.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Wms_MesPushTaskDetail",
        setup() {
            const table = ref({
                key: "MesPushTaskDetailId",
                footer: "Foots",
                cnName: "单据推送信息明细",
                name: "mespush/Wms_MesPushTaskDetail",
                newTabEdit: false,
                url: "/Wms_MesPushTaskDetail/",
                sortName: "MesPushTaskDetailId"
            });
            const editFormFields = ref({"OrderNo":"","Productid":"","PickingId":"","ProductQty":"","LotId":"","LocationId":"","LocationDestId":"","ProductUomId":"","MesPushTaskMainId":"","WeightQty":"","Data":"","LotNo":""});
            const editFormOptions = ref([[{"title":"单号","field":"OrderNo"},
                               {"title":"物料Code","field":"Productid"}],
                              [{"dataKey":"WMS_Order","data":[],"title":"Erp 单据ID","field":"PickingId"},
                               {"title":"移动数量","field":"ProductQty","type":"decimal"}],
                              [{"title":"批次ID","field":"LotId"},
                               {"title":"Erp 来源库位ID","field":"LocationId"}],
                              [{"title":"Erp 目标库位ID","field":"LocationDestId"},
                               {"title":"Erp ProductUomId","field":"ProductUomId"}],
                              [{"title":"","field":"MesPushTaskMainId","type":"number"},
                               {"title":"重量","field":"WeightQty","type":"decimal"}],
                              [{"title":"json数据","field":"Data"},
                               {"title":"批次号","field":"LotNo"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"MesPushTaskDetailId",title:"ID",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"OrderNo",title:"单号",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"Productid",title:"物料Code",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"PickingId",title:"Erp 单据ID",type:"string",bind:{ key:"WMS_Order",data:[]},width:120,showOverflowTooltip:true,align:"left"},
                       {field:"ProductQty",title:"移动数量",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"LotId",title:"批次ID",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"LocationId",title:"Erp 来源库位ID",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"LocationDestId",title:"Erp 目标库位ID",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"ProductUomId",title:"Erp ProductUomId",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"MesPushTaskMainId",title:"MesPushTaskMainId",type:"bigint",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"WeightQty",title:"重量",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Data",title:"json数据",type:"string",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"LotNo",title:"批次号",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效",type:"int",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
